package com.sgb.kjwl.view.ui.adapter.enterprise;

import android.content.Context;
import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.enterprise.TeamChangeEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class EpTeamAdapter extends BaseRecycleAdapter<TeamChangeEntity> {

    Context context;

    public EpTeamAdapter(Context context, List<TeamChangeEntity> datas) {
        super(context, R.layout.item_enterprise_zhuanyetuandui, datas);
        this.context = context;
    }

    @Override
    public void convert(ItemViewHolder holder, TeamChangeEntity epTeamEntity) {
        holder.setBinding(BR.viewModel, epTeamEntity);
        holder.setBinding(BR.adapter,iCallPhone);
    }

    private ICallPhone iCallPhone;

    public interface ICallPhone {
        void call(String num, String name);
    }

    public void OnCallPhone(ICallPhone iCallPhone) {
        this.iCallPhone = iCallPhone;
    }
}
